﻿using System.ServiceModel;
using Ayatta.Contract.Domain;

namespace Ayatta.Contract
{
    [ServiceContract(Namespace = ServiceContract.Namespace)]
    public interface IService
    {
        /// <summary>
        /// 清除SQL缓存
        /// </summary>
        [OperationContract]
        void CachePurge();

        /// <summary>
        /// 获取缓存的SQL信息
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        PagedList<Magic<string, string, int>> CacheGet(int page = 1, int size = 50, int hitCount = 0);
    }

    internal static class ServiceContract
    {
        public const string Namespace = "http://www.ayatta.com";
    }
}